/**
 * 模块化
 */
const ImStorage = {}

ImStorage.getImStorage = function(key) {
	return localStorage.getItem(key);
}
ImStorage.setImStorage= function(key, obj) {
	localStorage.setItem(key, JSON.stringify(obj))
}
ImStorage.setImStorage= function(key, obj ) {
	localStorage.setItem(key, JSON.stringify(obj))
}

ImStorage.clearImStorage = function(key) {
	localStorage.removeItem(key);
}
ImStorage.clearAll= function() {
	localStorage.clear();
}

export default ImStorage
